/**
 * 
 */
package cn.netjava.softkid.chapter04;

/**
 * @author Administrator
 *
 */
public class Mother {
	private String name;
	private char sex='f';
	private float properties=1000.0f;
	private float account;
	
	private float getProperties()
	{
		Father f = new Father();
		return this.properties+f.getProperties();
	}
	
	private void depositMoney(float money)
	{
		properties-=money;
		account+=money;
	}
	
	private float withdrawMoney(float money)
	{
		properties+=money;
		account-=money;
		return money;
	}

	private float getAccount() {
		return account;
	}
	
	public static void main(String args[])
	{
		Mother m = new Mother();
		System.out.println(m.getProperties());
		System.out.println(m.getAccount());
		m.depositMoney(100);
		System.out.println(m.getProperties());
		System.out.println(m.getAccount());
		System.out.println();
	}
}
